<script setup>
  import { ref,onMounted ,onUpdated } from 'vue'

const msg = ref('hello world')
console.log('add');

onMounted(() => {
  console.log(document.querySelector('#add'))
})

onUpdated(() => {
  console.log(document.querySelector('#add'));
})
</script>

<template>
{{ msg }}
<div id="add">1</div>
</template>
